package com.aikon.wht.collections;

import java.util.Vector;
import java.util.function.Consumer;

/**
 * @author haitao.wang
 *
 */
public class TestOfVector {
	
	public static void main(String[] args){
		Vector<String> vec = new Vector<String>();
		vec.add("xxx");
		vec.add("yyy");
		vec.add("zzz");
		System.out.println(vec.get(0));
		System.out.println(vec.get(1));
		System.out.println(vec.get(2));
		vec.forEach(new Consumer<String>() {
			public void accept(String t) {
				t="jjj";
			}
		});
		System.out.println(vec.get(0));
		System.out.println(vec.get(1));
		System.out.println(vec.get(2));
		for(String s: vec){
			System.out.println(s);
		}
		vec.spliterator();
		
	}

}
